-
Notifications
You must be signed in to change notification settings - Fork 772
Issue [#94] migrate to realm #95
Issue [#94] migrate to realm #95
Conversation
} catch let error as NSError { | ||
completion?(error: error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to call the completion here, because the function is waiting for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just thinking to remove the completion as for now no method call that give parameter for completion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May we can leave it as optional, because I think we can use later, what do you think?
…for persistHighlight
@@ -50,6 +50,7 @@ class Highlight: Object { | |||
try! realm.commitWrite() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs call completion on success write too completion?(error: nil)
Migrate from coredata to Realm and keep range startOffset and endOffset of original document to prepare migration to Rangy